import config from "@/config"
import http from "@/utils/request"
export default {
	menu: {
		myMenus: {
			url: `${config.API_URL}/system/menu/tree/sys.backstage`,
			name: "获取我的菜单",
			get: async function() {
				return await http.get(this.url);
			}
		},
		list: {
			url: `${config.API_URL}/system/menu/list`,
			name: "获取菜单",
			get: async function() {
				return await http.get(this.url);
			}
		},
		tree: {
			url: `${config.API_URL}/system/menu/tree`,
			name: "获取菜单",
			get: async function() {
				return await http.get(this.url);
			}
		}
	},
	account: {
		searchAndBindEemployee: {
			url: `${config.API_URL}/system/account/searchAndBindEemployee`,
			name: "查询并绑定员工账号",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		selectEemployee: {
			url: `${config.API_URL}/system/account/selectEemployee`,
			name: "获取门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/account/list`,
			name: "获取门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/account/show`,
			name: "获取门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	upload: {
		token: {
			url: `${config.API_URL}/system/upload/token`,
			name: "获取门店",
			get: async function() {
				return await http.get(this.url);
			}
		},
		file: {
			url: `${config.API_URL}/system/upload`,
			name: "获取门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	question: {
		status: {
			url: `${config.API_URL}/system/question/status`,
			name: "禁用",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/question/list`,
			name: "获取问卷列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/question/create`,
			name: "添加问题",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		info: {
			url: `${config.API_URL}/system/question/info`,
			name: "获取问题",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/question/update`,
			name: "更新问题",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/question/remove`,
			name: "删除问题",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	stat: {
		list: {
			url: `${config.API_URL}/system/stat/list`,
			name: "获取",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		stat: {
			url: `${config.API_URL}/system/stat/stat`,
			name: "获取",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/stat/create`,
			name: "添加",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		info: {
			url: `${config.API_URL}/system/stat/info`,
			name: "获取",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/stat/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/stat/remove`,
			name: "删除",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	commissionSettlement: {
		list: {
			url: `${config.API_URL}/system/commission/settlement/list`,
			name: "获取门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/commission/settlement/create`,
			name: "添加门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/commission/settlement/show`,
			name: "获取门店信息",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},

	},

	shop: {
		list: {
			url: `${config.API_URL}/system/shop/list`,
			name: "获取门店",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/shop/create`,
			name: "添加门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/shop/show`,
			name: "获取门店信息",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/shop/update`,
			name: "更新门店信息",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/shop/remove`,
			name: "删除门店",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	region: {
		all: {
			url: `${config.API_URL}/system/region/all`,
			name: "获取省市区",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},
	promotion: {
		list: {
			url: `${config.API_URL}/system/promotion/list`,
			name: "获取促销活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/promotion/create`,
			name: "创建促销活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/promotion/update`,
			name: "获取促销活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/promotion/remove`,
			name: "获取促销活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/promotion/show`,
			name: "获取促销活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},
	writeoff: {
		list: {
			url: `${config.API_URL}/system/writeoff/list`,
			name: "核销记录",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},

	activityV2Page: {
		show: {
			url: `${config.API_URL}/system/activity/v2/page/show`,
			name: "显示活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/activity/v2/page/update`,
			name: "更新活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	activityV2: {
		list: {
			url: `${config.API_URL}/system/activity/v2/list`,
			name: "获取活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/activity/v2/show`,
			name: "获取活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/activity/v2/create`,
			name: "获取活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/activity/v2/update`,
			name: "获取活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	activity: {
		list: {
			url: `${config.API_URL}/system/activity/list`,
			name: "获取活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/activity/show`,
			name: "获取活动",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/activity/create`,
			name: "获取活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/activity/update`,
			name: "获取活动",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	activityTask: {
		list: {
			url: `${config.API_URL}/system/activity/task/list`,
			name: "获取活动任务",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},

		rewardList: {
			url: `${config.API_URL}/system/activity/task/reward_list`,
			name: "获取活动任务",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	infoSource: {
		tree: {
			url: `${config.API_URL}/system/infosource/tree`,
			name: '获取信息来源',
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},


	custGroupRule: {
		tree: {
			url: `${config.API_URL}/system/cust/group/rule/tree`,
			name: '获取信息来源',
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},


	order: {
		sendGift: {
			url: `${config.API_URL}/system/order/sendGift`,
			name: "赠送礼品",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		refundReset: {
			url: `${config.API_URL}/system/order/refundReset`,
			name: "重置售后状态",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		fileExport: {
			url: `${config.API_URL}/system/order/fileExport`,
			name: "导出附件",
			get: async function(data, config = {}) {
				return await http.get(this.url, data, config);
			}
		},
		list: {
			url: `${config.API_URL}/system/order/list`,
			name: "获取订单",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		refundWechat: {
			url: `${config.API_URL}/system/order/refundWechat`,
			name: "订单退款",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	pluginMarket: {
		list: {
			url: `${config.API_URL}/system/plugin/market/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},

		category: {

			list: {
				url: `${config.API_URL}/system/plugin/market/category/list`,
				name: "获取分类树",
				get: async function(params) {
					return await http.get(this.url, params);
				}
			},
			tree: {
				url: `${config.API_URL}/system/plugin/market/category/tree`,
				name: "获取分类树",
				get: async function(params) {
					return await http.get(this.url, params);
				}
			},
			remove: {
				url: `${config.API_URL}/system/plugin/market/category/remove`,
				name: "获取分类树",
				post: async function(params) {
					return await http.post(this.url, params);
				}
			},
			create: {
				url: `${config.API_URL}/system/plugin/market/category/create`,
				name: "获取分类树",
				post: async function(params) {
					return await http.post(this.url, params);
				}
			},
			update: {
				url: `${config.API_URL}/system/plugin/market/category/update`,
				name: "更新",
				post: async function(params) {
					return await http.post(this.url, params);
				}
			},

		}

	},

	clusterNode: {
		list: {
			url: `${config.API_URL}/system/cluster/node/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},


	clusterNode: {
		list: {
			url: `${config.API_URL}/system/cluster/node/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},



	wdrlRecordWxpay: {
		query: {
			url: `${config.API_URL}/system/wdrl/records/wxpay/query`,
			name: "查询订单",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		transfer: {
			url: `${config.API_URL}/system/wdrl/records/wxpay/transfer`,
			name: "发起转账",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		cancel: {
			url: `${config.API_URL}/system/wdrl/records/wxpay/cancel`,
			name: "取消转账",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	goods: {
		online: {
			url: `${config.API_URL}/system/product/online`,
			name: "上架商品",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		offline: {
			url: `${config.API_URL}/system/product/offline`,
			name: "下架商品",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/product/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/product/remove`,
			name: "删除商品",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/product/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		info: {
			url: `${config.API_URL}/system/product/first`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/product/update`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
	},
	coupon: {
		list: {
			url: `${config.API_URL}/system/coupon/list`,
			name: "获取优惠券列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},

	commissionRecord: {
		list: {
			url: `${config.API_URL}/system/commission/record/list`,
			name: "佣金记录表",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},

	wdrlRecord: {
		approve: {
			url: `${config.API_URL}/system/wdrl/records/approve`,
			name: "审核通过",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		reject: {
			url: `${config.API_URL}/system/wdrl/records/reject`,
			name: "审核拒绝",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/wdrl/records/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/wdrl/records/list`,
			name: "获取优惠券列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
	},

	sysInfo: {
		show: {
			url: `${config.API_URL}/system/sys/info/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	// 直播活动 live/player
	livePlayer: {
		create: {
			url: `${config.API_URL}/system/live/player/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/live/player/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/live/player/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/live/player/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	// 页面装修
	pageDesign: {
		create: {
			url: `${config.API_URL}/system/page/design/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/page/design/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/page/design/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/page/design/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},


	adSpace: {
		create: {
			url: `${config.API_URL}/system/adspace/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/adspace/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/adspace/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/adspace/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},


	cdp: {
		eventTable: {
			create: {
				url: `${config.API_URL}/system/cdp/event/table/create`,
				name: "获取分类树",
				post: async function(params) {
					return await http.post(this.url, params);
				}
			},
			update: {
				url: `${config.API_URL}/system/cdp/event/table/update`,
				name: "更新",
				post: async function(params) {
					return await http.post(this.url, params);
				}
			},
			show: {
				url: `${config.API_URL}/system/cdp/event/table/show`,
				name: "获取分类树",
				get: async function(params) {
					return await http.get(this.url, params);
				}
			},
			list: {
				url: `${config.API_URL}/system/cdp/event/table/list`,
				name: "获取商品列表",
				get: async function(params) {
					return await http.get(this.url, params);
				}
			}
		}
	},

	media: {
		create: {
			url: `${config.API_URL}/system/media/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/media/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/media/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/media/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	workflow: {
		create: {
			url: `${config.API_URL}/system/workflow/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/workflow/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/workflow/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/workflow/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	// 工单反馈
	complaint: {

		reply: {
			url: `${config.API_URL}/system/complaint/reply`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},

		create: {
			url: `${config.API_URL}/system/complaint/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/complaint/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/complaint/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/complaint/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}

	},

	// 消息模板管理

	msgTemplate: {
		tree: {
			url: `${config.API_URL}/system/msg/template/tree`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/msg/template/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/msg/template/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/msg/template/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/msg/template/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},


	// 小程序PUSH模板消息
	mpPushTemplate: {
		create: {
			url: `${config.API_URL}/system/mp/push/template/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/mp/push/template/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/mp/push/template/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/mp/push/template/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	// 企业微信消息模板
	wxWorkTemplate: {
		create: {
			url: `${config.API_URL}/system/wxwork/template/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/wxwork/template/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/wxwork/template/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/wxwork/template/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	// 短链模板功能
	shortTemplate: {
		create: {
			url: `${config.API_URL}/system/short/template/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/short/template/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/short/template/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/short/template/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	smsTemplate: {
		create: {
			url: `${config.API_URL}/system/sms/template/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/sms/template/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/sms/template/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/sms/template/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	custGroup: {
		dictionary: {
			url: `${config.API_URL}/system/cust/group/dictionary`,
			name: "字典表",
			post: async function(params) {
				return await http.post(this.url, params);
			},
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		test: {
			url: `${config.API_URL}/system/cust/group/test`,
			name: "sql检测",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		preview: {
			url: `${config.API_URL}/system/cust/group/preview`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			},
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/cust/group/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/cust/group/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/system/cust/group/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/cust/group/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},

	custGroupCategory: {
		list: {
			url: `${config.API_URL}/system/cust/group/category/list`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		tree: {
			url: `${config.API_URL}/system/cust/group/category/tree`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/cust/group/category/remove`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/cust/group/category/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/cust/group/category/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
	},

	category: {
		qrcode: {
			url: `${config.API_URL}/system/category/qrcode`,
			name: "二维码",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/system/category/list`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		tree: {
			url: `${config.API_URL}/system/category/tree`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/category/remove`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/category/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/category/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
	},
	moment: {
		list: {
			url: `${config.API_URL}/system/moment/list`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/moment/remove`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/moment/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		info: {
			url: `${config.API_URL}/system/moment/info`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			},
		},
		update: {
			url: `${config.API_URL}/system/moment/update`,
			name: "更新",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
	},
	dict: {
		order: {
			url: `${config.API_URL}/system/dict/order`,
			name: "系统设置",
			get: async function(params) {
				return await http.get(this.url, params);
			},
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		sysconfig: {
			url: `${config.API_URL}/system/dict/sysconfig`,
			name: "系统设置",
			get: async function() {
				return await http.get(this.url);
			},
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		tree: {
			url: `${config.API_URL}/system/dict/tree`,
			name: "获取字典树",
			get: async function() {
				return await http.get(this.url);
			}
		},
		list: {
			url: `${config.API_URL}/system/dict/list`,
			name: "字典明细",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/dict/update`,
			name: "更新值",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		get: {
			url: `${config.API_URL}/system/dict/get`,
			name: "获取字典数据",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	permission: {
		tree: {
			url: `${config.API_URL}/system/permission/tree`,
			name: "获取字典树",
			get: async function() {
				return await http.get(this.url);
			}
		},
		list: {
			url: `${config.API_URL}/system/permission/list`,
			name: "字典明细",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		get: {
			url: `${config.API_URL}/system/permission/get`,
			name: "获取字典数据",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	role: {
		list: {
			url: `${config.API_URL}/system/role/list2`,
			name: "获取角色列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/role/update`,
			name: "更新角色的权限",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	dept: {
		list: {
			url: `${config.API_URL}/system/dept/list`,
			name: "获取部门列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	employee: {
		list: {
			url: `${config.API_URL}/system/employee/list`,
			name: "获取员工列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}/system/employee/create`,
			name: "添加员工",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/employee/update`,
			name: "用户编辑",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		reset: {
			url: `${config.API_URL}/system/employee/reset`,
			name: "重置密码",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		ban: {
			url: `${config.API_URL}/system/employee/ban`,
			name: "禁止登录",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		unban: {
			url: `${config.API_URL}/system/employee/unban`,
			name: "允许登录",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		offline: {
			url: `${config.API_URL}/system/employee/offline`,
			name: "踢下线",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		remove: {
			url: `${config.API_URL}/system/employee/remove`,
			name: "删除员工",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	customer: {
		list: {
			url: `${config.API_URL}/system/customer/list`,
			name: "获取用户列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		update: {
			url: `${config.API_URL}/system/customer/update`,
			name: "用户编辑",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	app: {
		list: {
			url: `${config.API_URL}/system/app/list`,
			name: "应用列表",
			get: async function() {
				return await http.get(this.url);
			}
		},
		update: {
			url: `${config.API_URL}/system/app/update`,
			name: "保存应用",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		add: {
			url: `${config.API_URL}/system/app/add`,
			name: "添加应用",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		delete: {
			url: `${config.API_URL}/system/app/delete`,
			name: "删除应用",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		}
	},
	log: {
		list: {
			url: `${config.API_URL}/system/log/list`,
			name: "日志列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	table: {
		list: {
			url: `${config.API_URL}/system/table/list`,
			name: "表格列管理列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		info: {
			url: `${config.API_URL}/system/table/info`,
			name: "表格列管理详情",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	tasks: {
		list: {
			url: `${config.API_URL}/system/tasks/list`,
			name: "系统任务管理",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	// 发送消息
	message: {
		create: {
			url: `${config.API_URL}/message/create`,
			name: "获取分类树",
			post: async function(params) {
				return await http.post(this.url, params);
			}
		},
		show: {
			url: `${config.API_URL}/message/show`,
			name: "获取分类树",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		},
		list: {
			url: `${config.API_URL}/message/list`,
			name: "获取商品列表",
			get: async function(params) {
				return await http.get(this.url, params);
			}
		}
	},
	commPost: function(url) {
		url = `${config.API_URL}/${url}`;
		return async function(params) {
			return await http.post(url, params);
		}
	}
}
